package com.app.micaihu.view.army.adapter

import android.widget.ImageView
import com.app.micaihu.R
import com.app.micaihu.view.bean.ArmyMember
import com.app.micaihu.view.bean.Honour
import com.app.micaihu.view.utils.loadImage
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * 军团勋章列表适配器
 */
class ArmyMedalListAdapter : BaseQuickAdapter<Honour, BaseViewHolder>(R.layout.army_medal_list_item), LoadMoreModule {

    override fun convert(holder: BaseViewHolder, item: Honour) {
        holder.apply {
            getView<ImageView>(R.id.ivHonourIcon).loadImage(item.icon)
            setText(R.id.tvHonourName, item.name)
        }
    }

}